package com.yugao.fintech.antelope.pay.client.assembly;

import org.mapstruct.Mapper;


@Mapper(componentModel = "spring")
public interface RefundAssembly {

//    default RefundStatus toRefundStatus(Status status) {
//        if (status == Status.SUCCESS) {
//            return RefundStatus.SUCCESS;
//        } else if (status == Status.ABNORMAL) {
//            return RefundStatus.ABNORMAL;
//        } else if (status == Status.CLOSED) {
//            return RefundStatus.CLOSED;
//        } else if (status == Status.PROCESSING) {
//            return RefundStatus.PROCESSING;
//        } else {
//            throw new BizException("未知退款状态");
//        }
//    }
//
//    default OrderStatus toOrderStatus(RefundStatus status) {
//        if (status == RefundStatus.SUCCESS) {
//            return OrderStatus.REFUND_SUCCESS;
//        } else if (status == RefundStatus.ABNORMAL) {
//            return OrderStatus.REFUND_ABNORMAL;
//        } else if (status == RefundStatus.PROCESSING) {
//            return OrderStatus.REFUND_PROCESSING;
//        } else if (status == RefundStatus.CLOSED) {
//            return OrderStatus.REFUND_SUCCESS;
//        } else {
//            throw new BizException("未知退款状态");
//        }
//    }

//    void updateRefundResp(RefundResp build, @MappingTarget RefundResp refundResp);
}
